<?php
	session_start();
	$action="logar.php";
?>
<html>
<head>
<title>CBTU/STU-JOP/SUPORTE T&Eacute;CNICO EM INFORM&Aacute;TICA</title>
	
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<link href="styles.css" rel="stylesheet" type="text/css" />

<script>
	function mascara(src, mask){
	var i = src.value.length;
	var saida = mask.substring(0,1);
	var texto = mask.substring(i)
	if (texto.substring(0,1) != saida)
	{	
	src.value += texto.substring(0,1);
	}
	} 
</script>

</head>

<body onload="document.form1.login.focus();">
<span class="Style1">
<p align=center><img src=imagens/cbtu-stujop.png /></p>
<table border="0" align="center">
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><form id="form1" name="form1" method="post" action="<?php echo $action; ?>">
      <table width="50%" border="0" align="center">
        <tr>
          <td  align="right"><label for="label">Usu&aacute;rio:</label></td>
          <td><input type="text" name="login" id="login" onkeypress="mascara(this, '##.###.###-#')" maxlength=12 /></td>
        </tr>
        <tr>
          <td  align="right"><label for="label">Senha:</label></td>
          <td><input type="password" name="senha" id="senha" /></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td align="right"> <input name="bt1" type="submit" id="bt1" value="OK" /></td>
        </tr>
      </table>
      </form>
    </td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
</span>
</body>
</html>
